'use strict';
const db = uniCloud.database();
const collection = db.collection('blessing');
exports.main = async (event, context) => {
	const {data}=await collection.get()
	var random = Math.floor(Math.random() * data.length);
	return {
	   text: data[random].text
	};
};
